package com.zhku.shoppingspringboot.controller;


import com.zhku.shoppingspringboot.common.R;
import com.zhku.shoppingspringboot.pojo.entity.Hot;
import com.zhku.shoppingspringboot.service.IHotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jieeee
 * @since 2025-01-03
 */
@RestController
@RequestMapping("/hot")
public class HotController {
    @Autowired
    private IHotService hotService;

    @GetMapping
    public R<List<Hot>> hotList(){
        return R.success(hotService.list());
    }
}
